﻿<UserControl x:Class="TouchExplorer.Views.Welcome"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:TouchControls="clr-namespace:TouchControls;assembly=TouchControls"
             xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid Margin="32">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid Width="215">
            <TouchControls:TouchListBox x:Name="Preset">
                <TouchControls:TouchListBox.ItemsPanel>
                    <ItemsPanelTemplate>
                        <WrapPanel />
                    </ItemsPanelTemplate>
                </TouchControls:TouchListBox.ItemsPanel>
                <TouchControls:TouchListBox.ItemTemplate>
                    <DataTemplate>
                        <TouchControls:Tile Style="{StaticResource TileWelcomeButton}" Content="{Binding Name}" Icon="{Binding Image}" Click="StartFavorite" />
                    </DataTemplate>
                </TouchControls:TouchListBox.ItemTemplate>
            </TouchControls:TouchListBox>
            <!--<TouchControls:Tile Style="{StaticResource TileButton}" Content="Documents" Icon="{StaticResource ImgDocs}" Click="TileClick" CommandParameter="Documents" />
            <TouchControls:Tile Style="{StaticResource TileButton}" Content="Downloads" Icon="{StaticResource ImgDownloads}"  Click="TileClick" CommandParameter="Downloads"/>
            <TouchControls:Tile Style="{StaticResource TileButton}" Content="Musics" Icon="{StaticResource ImgMusics}"  Click="TileClick" CommandParameter="Musics"/>
            <TouchControls:Tile Style="{StaticResource TileButton}" Content="Pictures" Icon="{StaticResource ImgPictures}" Click="TileClick"  CommandParameter="Pictures"/>
            <TouchControls:Tile Style="{StaticResource TileButton}" Content="Videos" Icon="{StaticResource ImgVideos}" Click="TileClick"  CommandParameter="Videos"/>
            <TouchControls:Tile Style="{StaticResource TileButton}" Content="Computer" Icon="{StaticResource ImgComputer}" Click="TileClick"  CommandParameter="Computer"/>-->
        </Grid>
        <Grid Grid.Column="1">
            <TouchControls:TouchMenu Visibility="Collapsed" x:Name="CtxMenu">
                <TouchControls:TouchMenuItem x:Name="MnuRemove" Header="Remove" Icon="{StaticResource ImgToolbarRemove}" Click="RemoveFavorite" />
            </TouchControls:TouchMenu>
            <TouchControls:TouchListBox x:Name="Favorites">
                <i:Interaction.Behaviors>
                    <TouchControls:ListItemAnimateScaleBehavior InitialDelay="0:0:1.00" Delay="0:0:0.20" Duration="0:0:0.35"/>
                </i:Interaction.Behaviors>
                <TouchControls:TouchListBox.ItemsPanel>
                    <ItemsPanelTemplate>
                        <WrapPanel />
                    </ItemsPanelTemplate>
                </TouchControls:TouchListBox.ItemsPanel>
                <TouchControls:TouchListBox.ItemTemplate>
                    <DataTemplate>
                        <TouchControls:Tile Style="{StaticResource TileFavButton}" Content="{Binding Name}" Icon="{Binding Image}" Click="StartFavorite" MouseRightButtonUp="ShowMenu" />
                    </DataTemplate>
                </TouchControls:TouchListBox.ItemTemplate>
            </TouchControls:TouchListBox>
        </Grid>
    </Grid>
</UserControl>
